package com.demo.easy.oneLine;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author:YuXuePeng
 * @Date:Created in 2023/4/14 17:11
 */
public class TemplateListener extends AnalysisEventListener<TemplateEntity> {
    private List<TemplateEntity> list = new ArrayList<TemplateEntity>();
    @Override
    public void invoke(TemplateEntity templateEntity, AnalysisContext analysisContext) {
        list.add(templateEntity);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
    public List<TemplateEntity> getList() {
        return list;
    }
}
